//
//  AppointmentRecordTableCell.m
//  HarmonizePub
//
//  Created by rzhy on 16/9/29.
//  Copyright © 2016年 Zy. All rights reserved.
//

#import "AppointmentRecordTableCell.h"

@interface AppointmentRecordTableCell ()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *subTitleLabel;
@property (weak, nonatomic) IBOutlet UILabel *stateLabel;

@end

@implementation AppointmentRecordTableCell

+ (NSString *)registerName {
    return @"AppointmentRecordTableCell";
}

- (void)setCellShowDataWithDataDictionary:(NSDictionary *)dataDict {
    [self setTitleText:dataDict[@"ygdm"]];
    [self setSubTitleText:dataDict[@"jzrq"] sd:dataDict[@"sxwpb"]];
    self.stateLabel.text = dataDict[@"result"];
}

- (void)setTitleText:(NSString *)titleText {
    self.titleLabel.text = titleText;
}

- (void)setSubTitleText:(NSString *)title sd:(NSString *)sd {
    NSString *subTiele = [NSString stringWithFormat:@"%@ %@", title, sd];
    self.subTitleLabel.text = subTiele;
}

@end
